package com.valuedaas.schoolsafety.controller.resource.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.valuedaas.schoolsafety.common.enums.DataStatus;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class MenuVO {

	@JSONField(name = "_id")
	private String _id;

	@NotEmpty(message = "菜单名称不能为空")
	private String name;

	private String desc;

	@NotEmpty(message = "菜单地址不能为空")
	private String url;

	@NotNull(message = "排序序号不能为空")
	private int order;

	private DataStatus state;

	private String icon;

	private String parent;

	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

    public DataStatus getState() {
        return state;
    }

    public void setState(DataStatus state) {
        this.state = state;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

}
